﻿@model HomeDetailsViewModel
@{
    ViewBag.Title =Model.Title;
    var photoPaht = "~/Images/" + (Model.Student.PhotoPath??"vsimg03.jpg");
}
<div class="row justify-content-center m-3">
    <div class="col-sm-8">
        <div class="card">
            <div class="card-header">
                <h1>@Model.Student.Name</h1>
            </div>

            <div class="card-body text-center">
                <img class="card-img-top" src="@photoPaht" asp-append-version="true" />
                <h1>学生ID ： @Model.Student.Id</h1>
                <h1>邮箱 ： @Model.Student.Email</h1>
                <h1>班级名称 ： @Model.Student.ClassName</h1>
            </div>
            <div class="card-footer text-center">
     
                <a asp-controller="home" asp-action="index" class="btn btn-primary">返回</a>
                <a href="#" class="btn btn-primary">编辑</a>
                <a href="#" class="btn btn-danger">删除</a>
            </div>
        </div>
    </div>
</div>


